/*************************************************************************
	> File Name: P1138.cpp
	> Author: yufangze
	> Mail: 2224590123@qq.com
	> Created Time: 2025-01-08 11:28:26
 ************************************************************************/

#include <iostream>
#include <set>
#include <map>
#include <vector>
#include <algorithm>
using namespace std;

int arr[10005];

int main() {
    int n, k;
    cin >> n >> k;
    for (int i = 0; i < n; i++) {
        cin >> arr[i];
    }
    sort(arr, arr + n);
    int ind = 0;
    for (int i = 1; k > 1 && i < n; i++) {
        if (arr[i] == arr[i - 1]) continue;
        ind = i;
        k--;
    }
    if (k > 1) {
        cout << "NO RESULT" << endl;
    } else {
        cout << arr[ind] << endl;
    }
    return 0;
}
